import Vue from 'vue'
import VueRouter from 'vue-router'
// import Home from '../views/Home.vue'
import Index from '../pages/index.vue'
import Contact from '../pages/contact.vue'
import Detail from '../pages/detail.vue'
import Manufacturer from '../pages/manufacturer.vue'
import Report from '../pages/report.vue'

import Diandongche from "../components/diandongche.vue"
import Donggan from "../components/donggan.vue"
Vue.use(VueRouter)

const routes = [
  // {
  //   path: '/',
  //   name: 'Home',
  //   component: Home
  // },
  // {
  //   path: '/about',
  //   name: 'About',
  //   // route level code-splitting
  //   // this generates a separate chunk (about.[hash].js) for this route
  //   // which is lazy-loaded when the route is visited.
  //   component: () => import(/* webpackChunkName: "about" */ '../views/About.vue')
  // }

  {
    path:'/',
    name:"首页",
    component:Index
  },
  {
    path:'/contact',
    name:'联系我们',
    component:Contact
  },
  {
    path:'/detail',
    name:"",
    component:Detail
  },
  {
    path:'/manufacturer',
    name:"生产厂家",
    component:Manufacturer
  },
  {
    path:'/report',
    name:"证书报告",
    component:Report
  },
  {
    path:'/diandongche',
    component:Diandongche
  },
  {
    path:'/donggan',
    component:Donggan
  }

]

const router = new VueRouter({
  routes
})

export default router
